home *** CD-ROM | disk | FTP | other *** search
/ Internet CD 2005 January / MICD_2005_01.iso / Webmaster / Ba / BestAddressHTMLInstall.exe / BestAddress HTML Editor 2005 Professional.msi / Data1.cab / Popup_Window.cde < prev    next >
Encoding:
Text File  |  2002-09-26  |  1.8 KB  |  33 lines

  1. <script language="JavaScript">
  2. <!--
  3. function PopupWindow()
  4.         {
  5. //      This code creates a popup window.
  6. //      INSTRUCTIONS:
  7. //        1. Insert this section of code anywhere between the end heading (</head>) and begin body (<body>) elements.
  8. //        2. Change the settings available below
  9. //        3. To open the popup window, add the following hyperlink code to your website:
  10. //                <a href="#" onClick="PopupWindow();">Click Here</a>
  11. //        4. If you add more popup windows to the same webpage, you will need to give each new function a different name. For example
  12. //            function PopupWindowOne()
  13. //            function PopupWindowTwo()
  14. //            function PopupWindowThree()
  15. //             and so on...
  16.  
  17.         //You can change the following settings
  18.         var webpage="index.html" //specify the address of webpage to open here
  19.         var windowwidth="200" //specify the width of the popup window
  20.         var windowheight="200" //speciy the height of the popup window
  21.         var showstatusbar="no" //show the status bar. Possible values are yes | no
  22.         var showtoolbar="no" //show the toolbar. Possible values are yes | no
  23.         var showlocationbar="no" //show the location bar. Possible values are yes | no
  24.         var showmenu="no" //show the menu bar. Possible values are yes | no
  25.  
  26.         //You do not need to change the code below:
  27.         windowname = window.open(webpage,"windowname","status=" + showstatusbar + ",toolbar=" + showtoolbar + ",location=" + showlocationbar + ",menubar=" + showmenu + ",width=" + windowwidth +",height=" + windowheight);
  28.         }
  29. --></script>
  30.  
  31. [-\description-/]
  32. Creates a pop-up window from a hyperlink. This code should be inserted between the end heading (</head>) and begin body (<body>) elements.
  33.